/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: ZJZ
 * @Date: 2021-07-14 10:54:53
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-04-11 11:29:47
 */
import request from "@/utils/request.js";

// 查询场景列表
export const queryScene = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/scene/queryScene',
        params
    })
}
// 修改默认场景
export const defaultScene = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/scene/defaultScene',
        params
    })
}
// 删除场景
export const delScene = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/scene/delScene',
        params
    })
}
// 编辑场景
export const updateScene = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/scene/updateScene',
        data
    })
}
// 场景排序
export const sceneSort = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/scene/sort',
        data
    })
}

// 操作记录
export const OperationRecord = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/OperationRecord/list',
        params
    })
}

// 获取地区
export const getArea = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/getArea',
        params
    })
}


// 获取用户所有信息
export const getInfo = params => {
    return request({
        method: 'get',
        url: '/getInfo',
        params
    })
}

// 检查支付方式
export const checkPay = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/onlineBank/checkPay',
        params
    })
}

// - 通过名称获取module
export const getModuleByName = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/customField/getModuleByName',
        params
    })
}
// - 展示用于新增/修改的自定义字段
export const showCustomField = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/customField/showCustomField',
        params
    })
}